import { Connection } from 'typeorm';
import { Relation } from './entities/relation.entity'

export const relationProviders = [
  {
    provide: 'RELATION_REPOSITORY',
    useFactory: (connection: Connection) => connection.getRepository(Relation),
    inject: ['DATABASE_CONNECTION'],
  },
];